//
//  MHFMDB+Querry.h
//  数据库的读写封装
//
//  Created by zsgjs on 2017/2/21.
//  Copyright © 2017年 zsgjs. All rights reserved.
//

#import "MHFMDB.h"

@interface MHFMDB (Querry)

/**
 *  获取指定字段的数据值
 */
- (id)queryField:(NSString *)field;

/**
 *  查询到的数据库结果
 */
- (NSArray *)queryAll;

/**
 *  查询单条记录
 */
- (NSDictionary *)querySigleInfo;

- (NSArray *)queryTableWithFields:(NSString *)fields
                             page:(NSUInteger)page
                         pageSize:(NSUInteger)pagesize
                        tableName:(NSString *)tableName;

- (NSArray *)queryTableWithPage:(NSUInteger)page
                       pageSize:(NSUInteger)pagesize
                      tableName:(NSString *)tableName;

- (NSArray *)queryTableWithPage:(NSUInteger)page
                       pageSize:(NSUInteger)pagesize
                          order:(NSString *)order
                      tableName:(NSString *)tableName;

- (NSArray *)queryTableWithFields:(NSString *)fields
                            pages:(NSUInteger)page
                         pageSize:(NSUInteger)pagesize
                            order:(NSString *)order
                        tableName:(NSString *)tableName;

@end
